var HomeActicle = {
    activeHot:function(obj) {
        var $this   = $(obj);
        var $parent = $this.parent().parent();
        $parent.find('li').removeClass('active');
        $this.parent().addClass('active');
    }
}

$(function(){
    /**
     * Auto slide
     */
    if ( totalArticleHot > 1 ) {
        $("div.s1").CarouSlide({
            animType:"slide-vertical",
            autoAnim:true,
            slideTime:4000,
            animTime:800,
            alwaysNext:true
        });
    }

    /**
     * Widget
     */
    setTimeout("FPT_widget_mix();", 100);
});

/**
 * Facebook plugin box
 */
(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s);
    js.id = id;
    js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));